<!DOCTYPE html>
<html lang="ch">

<head>
    <title>课程评价系统</title>

    <!-- Meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">

    <link rel="stylesheet" href="../css/bootstrap.css">
    <link rel="stylesheet" href="../css/font-awesome.css">
    <link rel="stylesheet" href="../css/index.css">


</head>

<body>
    <!-- header -->
    <header class="header fixed-top">

        <div class="branding">
            <div class="container-fluid position-relative pt-2">
                <div class="logo-wrapper">
                    <div class="site-logo">
                        <a class="navbar-brand" href="index.html">
                            <img class="logo-icon mr-2" src="../img/logo.svg" alt="logo">
                            <span class="logo-text">DBS<span class="text-alt">课程评价系统</span></span>
                        </a>
                    </div>
                </div>
                <div class="d-flex justify-content-end align-items-center pt-2">
                    <form class="search-form" id="search-form" action="search_result.html">
                        <input type="text" placeholder="你可能感兴趣的课程..." name="search" class="form-control search-input">
                        <button class="btn search-btn"><i class="fa fa-search"></i></button>
                    </form>
                    <ul class="top-icon mx-md-3 mx-lg-5 mb-0 d-none d-lg-flex hiddenx" id="icon">
                        <li class="list-inline-item">
                            <a href="user.html"><i class="fa fa-github"></i></a>
                            <p5 id="navname"></p5>
                        </li>
                    </ul>
                    <a href="login.html" class="btn btn-primary d-none d-lg-flex hiddenx" id="login">登录/注册</a>
                </div>
            </div>
        </div>
    </header>

    <!-- class search section -->
    <div class="class-search theme-bg-dark py-5 text-center position-relative">
        <div class="theme-bg-shapes-right"></div>
        <div class="theme-bg-shapes-left"></div>
        <div class="container">
            <h1 class="page-heading single-col-max mx-auto">在这里, 寻找更好的选课体验</h1>
            <div class="main-search-box pt-3 d-block mx-auto">
                <form class="search-form w-100" action="search_result.html">
                    <input type="text" placeholder="你可能感兴趣的课程..." name="search" class="form-control search-input">
                    <button type="submit" class="btn search-btn" value="Search"><i class="fa fa-search"></i></button>
                </form>
            </div>
            <div class="container">
                <div class="class-part py-5" id="class-part">
                    <div class="row justify-content-center">
                        <div class="col-12 col-lg-4 py-3">
                            <div class="card shadow-sm">
                                <div class="card-body">
                                    <h5 class="card-title mb-2">
                                        <span class="theme-icon-holder card-icon-holder mr-2">
									<i class="fa fa-map-signs"></i>
								</span>
                                        <span class="card-title-text">计算机系课程</span>
                                    </h5>
                                    <a class="card-link-mask" href="class_part.html?dept=CS"></a>
                                </div>
                            </div>
                        </div>

                        <div class="col-12 col-lg-4 py-3">
                            <div class="card shadow-sm">
                                <div class="card-body">
                                    <h5 class="card-title mb-3">
                                        <span class="theme-icon-holder card-icon-holder mr-2">
									<i class="fa fa-archive"></i>
								</span>
                                        <span class="card-title-text">数学系课程</span>
                                    </h5>
                                    <div class="card-text"></div>
                                    <a class="card-link-mask" href="class_part.html?dept=MA"></a>
                                </div>
                            </div>
                        </div>
                        <div class="col-12 col-lg-4 py-3">
                            <div class="card shadow-sm">
                                <div class="card-body">
                                    <h5 class="card-title mb-3">
                                        <span class="theme-icon-holder card-icon-holder mr-2">
									<i class="fa fa-cogs"></i>
								</span>
                                        <span class="card-title-text">英语系课程</span>
                                    </h5>
                                    <div class="card-text"></div>
                                    <a class="card-link-mask" href="class_part.html?dept=EN"></a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- footer -->
    <!-- <footer class="footer">
        <div class="footer-bottom text-center py-5">
            <ul class="social-list list-unstyled pb-4 mb-0">
                <li class="list-inline-item"><a href="#"><i class="fa fa-github"></i></a></li>
                <li class="list-inline-item"><a href="#"><i class="fa fa-twitter"></i></a></li>
                <li class="list-inline-item"><a href="#"><i class="fa fa-slack"></i></a></li>
                <li class="list-inline-item"><a href="#"><i class="fa fa-product-hunt"></i></a></li>
                <li class="list-inline-item"><a href="#"><i class="fa fa-facebook-f"></i></a></li>
                <li class="list-inline-item"><a href="#"><i class="fa fa-instagram"></i></a></li>
            </ul>
            <small class="copyright">Copyright &copy; 2020.All rights reserved.<a target=""></a></small>
        </div>
    </footer> -->

    <!-- Javascript -->
    <script src="../js/jquery-3.4.1.js"></script>
    <script src="../js/bootstrap.js"></script>
    <script src="../js/index.js"></script>
    <script src="../js/util.js"></script>
    <script>
        // 没登录
        if (getCookie("user") === undefined || getCookie("user") === "") {

            document.getElementById("icon").classList.add("hiddenx");
            document.getElementById("login").classList.remove("hiddenx");
        } else {
            // document.getElementById("navname").innerText = getCookie("user").nickname;
            document.getElementById("login").classList.add("hiddenx");
            document.getElementById("icon").classList.remove("hiddenx");
        }
    </script>

</body>

</html>